#include"myclass.h"

my_token::my_token(token_type type, string value) {
	this->value = value;
	this->type = type;
	this->bf_value = value;
}

my_token::my_token(int num_type, string value) {
	this->num_type = num_type;
	this->value = value;
	this->bf_value = value;
}

void my_token::set_pos(int line) {
	this->line = line;
}

void ast_dot::set_left_right(ast_dot* left, ast_dot* right) {
	this->left = left;
	this->right = right;
}

void ast_dot::set_type(string type) {
	this->type = type;
}

void ast_dot::add_dot_list(ast_dot*& next) {
	this->next.push_front(next);
}

sym_cal::sym_cal(string type, string value) {
	this->type = type;
	this->value = value;
}

sym_cal::sym_cal(string type) {
	this->type = type;
	this->value = type;
}

sym_def::sym_def(string type) {
	this->value = type;
	this->type = type;
}

sym_printf::sym_printf(string type) {
	this->type = type;
	this->value = type;
}

void ast_dot::set_show_content(ast_dot* content) {
	this->show_content = content;
}